package com.eastedu.report.client.file;

import java.io.File;
import java.io.InputStream;


/**
 * 文件上传服务
 *
 * @author superman
 */
public interface FileUploadService {

    /**
     * Upload string.
     *
     * @param prefix 云存储目录
     * @param file   the file
     * @return the string
     * @throws Exception the exception
     */
    String upload(String prefix, File file) throws Exception;

    /**
     * Upload string.
     *
     * @param prefix      云存储目录
     * @param filename    the filename
     * @param inputStream the input stream
     * @return the string
     * @throws Exception the exception
     */
    String upload(String prefix, String filename, InputStream inputStream) throws Exception;

}
